package com.hq.service.impl;

import com.hq.dao.Staff_messageDao;
import com.hq.pojo.Custome;
import com.hq.pojo.Staff;
import com.hq.pojo.Staff_message;
import com.hq.service.Staff_messageService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Staff_massageServiceImpl implements Staff_messageService {

    @Resource
    Staff_messageDao staff_messageDao;

    @Override
    public int add_staff(Staff staff) throws Exception {
        return staff_messageDao.add_staff(staff);
    }

    @Override
    public int add_staff_message(Staff_message staff_message) throws Exception {
        return staff_messageDao.add_staff_message(staff_message);
    }

    @Override
    public int del_staff(Integer id) throws Exception {
        return staff_messageDao.del_staff(id);
    }

    @Override
    public int del_staff_message(Integer id) throws Exception {
        return staff_messageDao.del_staff_message(id);
    }

    @Override
    public int upd_staff(Staff staff) throws Exception {
        return staff_messageDao.upd_staff(staff);
    }

    @Override
    public int upd_staff_message(Staff_message staff_message) throws Exception {
        return staff_messageDao.upd_staff_message(staff_message);
    }

    @Override
    public Staff_message sel_staff(Staff staff) throws Exception {
        return staff_messageDao.sel_staff(staff);
    }

    @Override
    public Staff_message sel_staff_message(Staff_message staff_message) throws Exception {
        return staff_messageDao.sel_staff_message(staff_message);
    }

    @Override
    public List<Staff> Staff_list_all(Integer pages, Integer pageSize, long staff_id, String staff_name) throws Exception {
        return staff_messageDao.Staff_list_all(pages,pageSize,staff_id,staff_name);
    }

    @Override
    public List<Staff_message> Staff_message_list_all(Integer pages, Integer pageSize,String inquire) throws Exception {
        return staff_messageDao.Staff_message_list_all(pages,pageSize,inquire);
    }

}
